package com.example.demo5;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "RegServlet", value = "/RegServlet")
public class RegServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String name=request.getParameter("txtname");
        String pwd=request.getParameter("txtpwd");
        String sex=request.getParameter("sex");
        String omail=request.getParameter("txtemail");
        String phone=request.getParameter("txtphone");
        String resume=request.getParameter("txtresume");

        System.out.println("name="+name);

        response.getWriter().println("假装注册成功");
    }
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
